Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix random total hits range for ExplanationPayloadProcessorTests. #1034

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

bzhangam
Copy link
Contributor

Description

Fix random total hits range for ExplanationPayloadProcessorTests. In tests we don't expect 0 total hit and 0 total hit will cause Index 0 out of bounds for length 0 error because we assume it should not be 0.

Related Issues

N/A

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@heemin32 heemin32 added the backport 2.x Label will add auto workflow to backport PR to 2.x branch label Dec 18, 2024
@martin-gaievski martin-gaievski merged commit 22ba5d3 into opensearch-project:main Dec 18, 2024
57 of 58 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Label will add auto workflow to backport PR to 2.x branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants